package pl.javarsovia.javarsovia4android.menu.commands;

import android.app.Activity;
import android.content.Intent;
import pl.javarsovia.R;
import pl.javarsovia.javarsovia4android.activities.PartnersActivity;
import pl.javarsovia.javarsovia4android.menu.ButtonCommand;

/**
 * @author mgrzechocinski
 * @since 2010-06-13
 */
public class PartnersButtonCommand implements ButtonCommand {

    private Activity activity;

    public PartnersButtonCommand(Activity activity) {
        this.activity = activity;
    }

    @Override
    public void buttonClicked() {
        activity.startActivity(new Intent(activity, PartnersActivity.class));
    }

    @Override
    public int getButtonResId() {
        return R.id.button_menu_partners;
    }
}
